#ifndef _MUSIC_H_
#define _MUSIC_H_

#include <string>
#include "SDL_mixer.h"

class Music
{
public:
	Music();
	~Music();

	bool Open(std::string & name);
	bool Open(const char *name);
	void Close();
	
	bool Opened();
	void Play(int track);
	void Resume();
	void Stop();
	void Fade(int time = 0);
	
	bool On()
	{
		return true;
	}

private:
	Mix_Music *mus;
};

extern Music Mus;

#endif
